package br.elsa.survey.domain.questions;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "radio_options", schema = "survey")
@DiscriminatorValue("RADIO_OPTIONS")
public class RadioOption extends Option {

	private static final long serialVersionUID = 7467335362826165237L;

	/**
	 * Instance of the question that this option belongs to
	 */
	@ManyToOne
	private RadioQuestion question;

	public RadioQuestion getQuestion() {
		return question;
	}

	public void setQuestion(RadioQuestion question) {
		this.question = question;
	}

}
